﻿using System.Web;
using System.Web.Optimization;

namespace Web
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/Scripts/Chess").Include(
                       "~/Scripts/chessboard/chessboard-{version}.js",
                       "~/Scripts/chessboard/chessLegalMoves/chess.min.js"));

            bundles.Add(new ScriptBundle("~/bundles/Tock").Include(
                        "~/Scripts/Tock.js"));

            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/signalr").Include(
                        "~/Scripts/jquery.signalR-{version}.js"));

            bundles.Add(new ScriptBundle("~/Scripts/chosen").Include(
                        "~/Scripts/chosen.jquery.js",
                        "~/Scripts/jquery-ui/jquery-ui.js"));

            bundles.Add(new ScriptBundle("~/Scripts/newGame").Include(
                        "~/Scripts/Views/NewGame.js"));

            bundles.Add(new ScriptBundle("~/Scripts/Board").Include(
                      "~/Scripts/Views/Board.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-{version}.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                        "~/Content/css/bootstrap/bootstrap.css",
                        "~/Content/css/bootstrap/bootstrap.css.map",
                        "~/Content/css/bootstrap/responsive.css",
                        "~/Content/css/bootstrap-modal/bootstrap-modal.css",
                        "~/Content/css/chosen.jquery/chosen.css",
                        "~/Content/css/chessboard/chessboard-{version}.css",
                        "~/Content/css/style.css"));
        }
    }
}
